package cn.edu.scau.cmi.dengzejun.chapter05;

public class Example5_6 {
	public static void main(String agrs[]) {
		Rectangle rect =new Rectangle();
		Circle circle=new Circle();
		Geometry geometry=new Geometry(rect,circle);
		geometry.SetRectanglePosion(30, 40);
		geometry.SetRectangleWidthAndHeight(120, 80);
		geometry.SetCirclePosition(260, 30);
		geometry.SetCircleRadius(60);
		System.out.print("The positional relationship between the circle and the rectangle in this graph is ");
		geometry.ShowState();
		System.out.println("The position of the circle and rectangle is re-adjusted in the graph");
		geometry.SetRectanglePosion(220, 160);
		geometry.SetCirclePosition(40, 30);
		System.out.print("The positional relationship after adjustment is ");
		geometry.ShowState();
		return;
	}
}
